from django.contrib import admin

# from .models import UserProfile
# # Register your models here.
#
#
# class UserProfileAdmin(admin.ModelAdmin):
#     pass
#
#
# admin.site.register(UserProfile, UserProfileAdmin)

from django.contrib import admin

from .models import Banner


class BannerAdmin(admin.ModelAdmin):
    # xadmin.site.register(EmailVerifyRecord, EmailVerifyRecordAdmin)
    list_display = ["title", "image", "url", "index", "add_time"]
    search_fields = ["title", "image", "url", "index"]
    list_filter = ["title", "image", "url", "index", "add_time"]


admin.site.register(Banner, BannerAdmin)
